//
//  YPRequestBaseBin.m
//  ChengHuiTong
//
//  Created by KiVen on 15/11/5.
//  Copyright © 2015年 张文权. All rights reserved.
//

#import "YPRequestBaseBin.h"
#import <objc/runtime.h>

@implementation YPRequestBaseBin
-(NSDictionary *)dictionaryValue{
    
    unsigned int propertyCount = 0;
    
    objc_property_t *properties = class_copyPropertyList([YPRequestBaseBin class], &propertyCount);
    
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:propertyCount];
    
    for (unsigned int i = 0; i < propertyCount; ++i) {
        
        objc_property_t property = properties[i];
        
        //获取属性名字
        NSString *name = [NSString stringWithUTF8String:property_getName(property)];
        
        id value = [self valueForKey:name];
        
        if (value != nil) {
            
            [dic setObject:[self valueForKey:name] forKey:name];
        }
    }
    
    Class currentClass = [self class];
    
    if (currentClass != [YPRequestBaseBin class]) {
        
        objc_property_t *properties = class_copyPropertyList([self class], &propertyCount);
        
        for (unsigned int i = 0; i < propertyCount; ++i) {
            
            objc_property_t property = properties[i];
            
            //获取属性名字
            NSString *name = [NSString stringWithUTF8String:property_getName(property)];
            
            id value = [self valueForKey:name];
            
            if (value != nil) {
                
                [dic setObject:[self valueForKey:name] forKey:name];
            }
        }
    }
    return dic;
}

@end

@implementation YPRegistBin

@end
@implementation YPLoginBin

@end
@implementation YPInvestmentBin

@end

@implementation YPInvestmentDetailsBin

@end

@implementation YPTenderBin

@end

@implementation YPMakeSureTenderBin

@end

@implementation YPAgainResetPasswordBin


@end

@implementation YPSetPasswordBin



@end
@implementation YPFeedbackBin


@end

@implementation YPGetCodeBin


@end

@implementation YPNotificationManagerBin


@end


@implementation YPUploadPictureBin

@end

@implementation YPStationMessageBin


@end
@implementation YPDeviceBin


@end

@implementation YPLoginOutBin

@end

@implementation YPStationMessageIsReeadBin


@end


@implementation YPGetURLBin


@end

@implementation YPNoticeBin



@end

@implementation YPgesturePassword

@end


@implementation YPEmailCertificateBin


@end

@implementation checkVipStatus



@end

@implementation YPVipVerify




@end

@implementation YPredBagBin



@end

@implementation YPautoListBin



@end

@implementation YPautoEditBin

-(instancetype)initWithDic:(NSDictionary *)dic{
    
    
    self = [super init];
    
    if (self) {
        
        
        [self setValuesForKeysWithDictionary:dic];
        
    }
    
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}


@end

@implementation YPautoDetailBin



@end

@implementation YPautoaddBin



@end
@implementation YPautoDelBin



@end